package com.pet.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 系统-角色表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-system-domain-entity-SysRole")
@Data
@NoArgsConstructor
@TableName(value = "sys_role")
public class SysRole implements Serializable {
  private static final long serialVersionUID = -3171006153480939489L;
  public static final String COL_ID = "id";
  public static final String COL_ROLE_KEY = "role_key";
  public static final String COL_NAME = "name";
  public static final String COL_DESCRIPTION = "description";
  public static final String COL_STATUS = "status";

  /** ID主键 */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "ID主键")
  private Integer id;

  /** 唯一识别标记（不可修改） */
  @TableField(value = "role_key")
  @ApiModelProperty(value = "唯一识别标记（不可修改）")
  private String roleKey;

  /** 角色标记 */
  @TableField(value = "`name`")
  @ApiModelProperty(value = "角色标记")
  private String name;

  /** 角色描述 */
  @TableField(value = "description")
  @ApiModelProperty(value = "角色描述")
  private String description;

  /** 角色状态 1：可用，0：禁用 */
  @TableField(value = "`status`")
  @ApiModelProperty(value = "角色状态  1：可用，0：禁用")
  private Integer status;
}
